<%@page contentType="text/html; charset=UTF-8" trimDirectiveWhitespaces="true" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<style type="text/css">
    li.head {
        list-style-type: none;
    }
    ul {list-style-type:square;}
    li {
        list-style-type:square;
        margin-left:20px;
    }
    table.fmea-info {
        margin: 3px 0px;
        width: 600px;
    }
    #note {
        position: absolute;
        background: #f5f5f5;
        border: 1px solid #ccc;
        border-radius: 4px;
        padding: 3px 6px;
        color: #333;
        display: none;
    }
</style>
<c:if test="${not empty subBom.sub.halfBomList || not empty subBom.sub.halfSubBomList}">
    <ul>
        <c:forEach var="subBom" items="${subBom.sub.halfSubBomList}">
            <li>
                <span>${subBom.sub.name}</span>&#x3000;
                <span><c:forEach var="process" items="${subBom.sub.fmeaProcessTypeList}" varStatus="var"> <br/> <b>[${process.code}] ${process.name}</b>
                    <img class="pfmea" data-type="pfmea_half" data-id="${process.id}" src="${pageContext.request.contextPath}/static/img/info.png" />
                </c:forEach></span>
                <c:set var="subBom" value="${subBom}" scope="request" />
                <jsp:include page="/WEB-INF/include/boms_tree.jsp" />
            </li>
        </c:forEach>
    </ul>
</c:if>